#{extends 'main.html' /}
#{set title:'Extranet' /} 

<!-- barra superior. codigo para mostrar o nome do usuario logado -->
<div class="navbar navbar-fixed-top">
	<div class="navbar-inner">
		<div class="container">
			<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span
				class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span>
			</a> <a class="brand" align="center"> &nbsp; EXTRANET - Sistema de Controle de Tarefas</a>
			<div>
				<ul class="nav pull-right">

					<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"> Ola,
							<b>${user}</b> <b class="caret"></b>
					</a>
						<ul class="dropdown-menu">
							<li><a href="@{Usuarios.editFuncionario()}"> <i class="icon-user"></i> Meu Perfil</a></li>
							<li><a href="@{Application.logout()}"> <i class="icon-off"></i> Sair</a></li>
						</ul></li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br><br><br><br>
<label align=center> <h2> Dados Pessoais </h2> </label> 

#{form @Usuarios.editarFuncionarioBanco(funcionario.id)} 
<div class="corpo">
	<div id="pre_cadastro">
	<div id = "cadastro">
		
		<p>
		<table width="400" align=center cellpadding="6" cellspacing="18" id="table">
			<tr> 
				<td>
					<label>Nome Completo: </label> 
				</td>
				<td>
					<input type="text" name="nome" value="${funcionario.nome}" size="40%" itle="No minimo 10 caracteres" required/>
				</td>
			</tr>
			
			<tr>
				<td> 
					<label>Usuario: </label> 
				</td>
				<td>
					<input type="text" name="username" value="${funcionario.username}" size="40%" required/>
				</td>
			</tr>
		</table>
		
		<br><br>
			<table align=center border=0>
			<tr>
				<td>
					<!-- <button class="btn btn-primary" type="submit" >
							<i class="icon-pencil icon-white"></i>
							Atualizar
							</button> -->
							<td><input type="submit" value="Atualizar" class="btn btn-success"/></td>
				#{/form}
				</td>
				
				#{form @Application.paginaInicial()} 
				<td>
					<!-- <button class="btn btn-danger" type="submit">
								<i class="icon-remove icon-white"></i>
								Cancelar 
					</button>  -->
					<td><input type="submit" value="Cancelar" class="btn btn-danger"/></td>
				#{/form}
			
		</td>
		</tr> 
		</table>	
 </div>	